package com.service.user.controller;

import com.client.model.vo.common.Result;
import com.service.user.service.ArUserService;
import com.service.user.service.BankFeignService;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/airui/api/user")
public class UserCenterController {

    @Autowired
    private ArUserService arUserService;


    @GetMapping("/getUser")
    public Result userList(@RequestHeader("token") String token){
        return arUserService.userList(token);
    }

    @GetMapping("/getUserBank")
    public Result getUserBank(@RequestHeader("token") String token){
        return arUserService.getUserBank(token);
    }
    /**
     * 获取资产总价值
     */
    @GetMapping("/assetValue")
    @Operation(summary = "获取资产总价值")
    public Result getAssetValue(@RequestHeader("token") String token){
        return arUserService.getAssetValue(token);
    }
}
